import java.util.function.Supplier;

public class RandomDataGenerator {
    public static void main(String[] args) {
        // 生成随机整数
        Supplier<Integer> randomInt = () -> (int)(Math.random() * 100);

        // 生成随机字符串
        Supplier<String> randomString = () -> {
            String chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i < 8; i++) {
                sb.append(chars.charAt((int)(Math.random() * chars.length())));
            }
            return sb.toString();
        };

        // 使用示例
        System.out.println("Random Integer: " + randomInt.get());
        System.out.println("Random String: " + randomString.get());
        System.out.println("Random String: " + randomString.get());
    }
}
